#ifndef QPAINTERWIDGET_H
#define QPAINTERWIDGET_H

#include <QWidget>
#include <QPainter>

#include <QPrinter>

#include <QBitmap>

#include <QPixmap>

#include <QPicture>
QT_BEGIN_NAMESPACE
namespace Ui { class QpainterWidget; }
QT_END_NAMESPACE

class QpainterWidget : public QWidget
{
    Q_OBJECT

public:
    QpainterWidget(QWidget *parent = nullptr);
    ~QpainterWidget();

private:
    Ui::QpainterWidget *ui;

protected:
void paintEvent(QPaintEvent *event) Q_DECL_OVERRIDE;  //Q_DECL_OVERRIDE表示这个函数是对父类虚函数的重载


};
#endif // QPAINTERWIDGET_H
